Version 4
SHEET 1 1396 680
WIRE -192 -176 -368 -176
WIRE 80 -176 -112 -176
WIRE -368 -96 -368 -176
WIRE 80 -80 80 -176
WIRE -368 80 -368 -16
WIRE -112 80 -368 80
WIRE 80 80 80 -16
WIRE 80 80 -112 80
WIRE -112 96 -112 80
FLAG -368 -176 in
FLAG 80 -176 out
FLAG -112 96 0
SYMBOL res -96 -192 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R
SYMATTR Value {wc(1k, tolR, 0)}
SYMBOL cap 64 -80 R0
WINDOW 3 -177 55 Left 2
SYMATTR InstName C1
SYMATTR Value {wc(1uF, tolC, 1)}
SYMBOL voltage -368 -112 R0
WINDOW 123 9 106 Left 2
WINDOW 39 0 0 Left 0
WINDOW 0 40 60 Left 2
SYMATTR Value2 AC 1
SYMATTR InstName V1
SYMATTR Value ""
TEXT -392 -312 Left 2 ;Primer korner analize \nprimenom korisničkih funkcija
TEXT 168 56 Left 2 !.ac oct 10 10 100kHz
TEXT 168 -184 Left 2 !.param tolR=0.1
TEXT 168 -144 Left 2 !.param tolC=0.2
TEXT 168 -96 Left 2 !.param numruns=4
TEXT 168 -24 Left 2 !.step param run 0 4 1
TEXT -416 136 Left 2 !.func wc(nom,tol,index) {if(run==numruns,nom,if(binary(run,index),nom*(1+tol),nom*(1-tol)))}
TEXT -416 200 Left 2 !.func binary(run,index) {floor(run/(2**index))-2*floor(run/(2**(index+1)))}
